﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 数据库采集配置表
    /// </summary>
    [SugarTable("database_collection_tables")]
    [Table(Name = "database_collection_tables")]
    public class DatabaseCollectionTables : BaseEntity
    {
        /// <summary>
        /// 自增主键 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 业务编码，用于业务关联 
        /// </summary>
        public string BusinessCode { get; set; }

        public string SourceTableName {  get; set; }

        public string TargetTableName {  get; set; }

        public string SourceIdColumnName {  get; set; }

        public long LatestSyncMaxId {  get; set; }

        public DateTime? LastSyncTime {  get; set; }

        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// Nullity 
        /// </summary>
        public bool Nullity { get; set; }

        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        

    }
}